package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 商品浏览记录表(GoodsView)表实体类
 *
 * @author yxy
 * @since 2024-11-04 09:11:23
 */
@Data
@ApiModel("商品浏览记录表")
@TableName(value = "tb_goods_view")
public class GoodsView extends Model<GoodsView> implements Serializable {
    private static final long serialVersionUID = 107785230047023018L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("类型0设备 1商品服务")
    private Integer type;

    @ApiModelProperty("设备-商品服务id")
    private Long goodsId;

    @ApiModelProperty("用户id")
    private Long userId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("商家id")
    private Long merchantId;

    @ApiModelProperty("浏览时长")
    private Long viewTime;
}
